package person.locke.regexandgame.game.plant;

import person.locke.regexandgame.game.ability.Producible;

/**
 * Created by Locker on 2018/7/4.
 */
public class Sunflower extends Plant implements Producible {

    private int produce;

    public Sunflower() {
    }

    public Sunflower(String name, int hp, int produce) {
        super(name, hp);
        this.produce = produce;
    }

    public void produce() {
        System.out.println("I'm Sunflower,I can produce "+produce+" sun!");
    }
}
